<?php
$this->widget('ext.pagetitle.PageTitle',array(
	'parts'=>array(Yii::t('frontend','Login')),
));

$this->breadcrumbs=array(
	Yii::t('frontend','Login'),
);
?>

<h1><?php echo Yii::t('frontend','Login'); ?></h1>

<fieldset>

	<?php $form=$this->beginWidget('BootstrapActiveForm', array(
		'id'=>'login-form',
		'clientOptions'=>array('validateOnSubmit'=>true),
	)); ?>

		<div class="clearfix">
			<?php echo $form->labelEx($model,'username'); ?>
			<div class="input">
				<?php echo $form->textField($model,'username'); ?>
				<?php echo $form->error($model,'username'); ?>
			</div>
		</div>

		<div class="clearfix">
			<?php echo $form->labelEx($model,'password'); ?>
			<div class="input">
				<?php echo $form->passwordField($model,'password'); ?>
				<?php echo $form->error($model,'password'); ?>
			</div>
		</div>

		<div class="clearfix rememberMe">

			<div class="input">
				<?php echo $form->checkBox($model,'rememberMe'); ?>
				<?php echo $form->error($model,'rememberMe'); ?>
			</div>
		</div>

		<div class="actions">
			<?php echo CHtml::submitButton(Yii::t('frontend','Login'),array('class'=>'btn primary')); ?>
		</div>

	<?php $this->endWidget(); ?>

</fieldset>
